package com.jiyinit.web.core.business.dao;

import com.jiyinit.core.framework.dao.mybatis.base.MybatisDaoContext;
import com.jiyinit.web.core.business.entity.TabCoreDictItemEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author lishaochuan
 * @version 1.0
 * @date 2017/4/24 15:20
 * @since 1.0
 */
@Repository("core.tabCoreDictItemDao")
public class TabCoreDictItemDao {

    /**
     * 日志对象
     */
    private static Logger logger = LoggerFactory.getLogger(TabCoreDictItemDao.class);

    private String SQLID = "core.tabCoreDictItemDao.";

    @Autowired
    @Qualifier("core.MybatisDaoContext")
    private MybatisDaoContext mybatisDaoContext;


    /**
     * 根据字典编号查询字典项值
     *
     * @param
     * @return
     * @author lishaochuan
     * @create 2017/4/24 15:23
     */
    public List<TabCoreDictItemEntity> selectByDictCode(String dictCode) {
        return mybatisDaoContext.findAll(SQLID + "selectByDictCode", TabCoreDictItemEntity.class, dictCode);
    }

}
